package com.weipai.education.mapper;

import com.weipai.education.model.InventoryOutDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface InventoryOutDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(InventoryOutDetail record);

    int insertSelective(InventoryOutDetail record);

    InventoryOutDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InventoryOutDetail record);

    int updateByPrimaryKey(InventoryOutDetail record);

    InventoryOutDetail getInventoryOutDetail(@Param("purchaseNumber") String purchaseNumber,
                                             @Param("userId") String userId,
                                             @Param("productId") String productId);

    List<Map<String,Object>> getAllInventoryOutDetail(@Param("purchaseNumber") String purchaseNumber,
                                                      @Param("userId") Integer userId,
                                                      @Param("productId") Integer productId);
}